package com.wlyuan.open.domain.qrcode;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author lijing
 */
@Data
public class QrCode {

    @ApiModelProperty("是否被扫 0 否 1 是 2 过期")
    private Integer scanner;
    private final String appId;

    public QrCode scanner() {
        this.scanner = 1;
        return this;
    }

    public QrCode noScanner() {
        this.scanner = 0;
        return this;
    }

    public QrCode expire() {
        this.scanner = 2;
        return this;
    }

}
